package com.spm.librarianmanagersystem.service;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

public interface ReservationService {
    JSONArray getReservations(String currentUserId);
    JSONObject getOneReservation(String currentUserId, Integer reservationId);
    String reserve(String currentUserId, String isbn);
    String cancel(String currentUserId, Integer reservationId);
    JSONArray getReservationsAdminDetail();
    // kai
    Boolean cancelReser(Integer reservationId, String currUserId) throws Exception;
}
